|
|
|
|
|
|
|
Creating an Executable Program |
|
|
|
|
|
|
|
|
Congratulations, you now have a good start on the Employee Information application. Youve just created the user interface, and although this form does not really do anything yet, its still a great start. In fact, if youre smart, youll always start by designing the user interface before you write any code. If you do this, youll find that your Visual Basic programming goes much smoother. |
|
|
|
|
|
|
|
|
Now, lets create an executable file from the form. You need to learn how to create an EXE that you can distribute to your users, so lets do it now. |
|
|
|
|
| Creating an EXE File 1. Select File, Make Employee.exe from the Visual Basic menu. 2. Be sure to put this EXE file in the same directory as your project file. This is not necessary, but I recommend it for now. 3. Click the OK button. 4. Exit Visual Basic by selecting File, Exit from the menu. 5. Switch over to Windows Explorer. 6. Locate the EMPLOYEE.EXE file and double-click it. 7. Your program should now be running! |  | Creating an EXE file that can be run in Windows is very simple in Visual Basic. With just a couple of keystrokes you have an application ready to run! |
|
|
|
|
|
|
After you stop your program from running by closing the window, go back to Windows Explorer, right-click, and select Properties from the pop-up menu. Under the Version tab, you should find all the properties you created when you set the project properties. |
|
|
|
|
|
|
|
|
In this chapter, you learned to use list boxes and combo boxes. A list box is used when you want the user to see many choices at one time, whereas a combo box is for just one selected item. A menu helps an applications user navigate from one form to another, or it can be used to perform selected actions. |
|
|
|
|
|